/*
 * Created by JFormDesigner on Wed Nov 05 16:36:04 CET 2014
 */

package pl.PawelAndAlicja.badugiproject.main.Gui;

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;


/**
 * @author Pawel Linkshell
 */
public class Table extends JPanel {
    public Table(ClientGUI owner) {
        this.father = owner;
        initComponents();

    }

    public void setNamePlayer1(String namePlayer1) {
        this.namePlayer1.setText(namePlayer1);
    }

    public void setCoinsPlayer1(String coinsPlayer1) {
        this.coinsPlayer1.setText(coinsPlayer1);
    }

    public void setNamePlayer2(String namePlayer2) {
        this.namePlayer2.setText(namePlayer2);
    }

    public void setCoinsPlayer2(String coinsPlayer2) {
        this.coinsPlayer2.setText(coinsPlayer2);
    }

    public void setNamePlayer3(String namePlayer3) {
        this.namePlayer3.setText(namePlayer3);
    }

    public void setCoinsPlayer3(String coinsPlayer3) {
        this.coinsPlayer3.setText(coinsPlayer3);
    }

    public void setNamePlayer4(String namePlayer4) {
        this.namePlayer4.setText(namePlayer4);
    }

    public void setCoinsPlayer4(String coinsPlayer4) {
        this.coinsPlayer4.setText(coinsPlayer4);
    }

    public void setNamePlayer5(String namePlayer5) {
        this.namePlayer5.setText(namePlayer5);
    }

    public void setCoinsPlayer5(String coinsPlayer5) {
        this.coinsPlayer5.setText(coinsPlayer5);
    }

    public void setNamePlayer6(String namePlayer6) {
        this.namePlayer6.setText(namePlayer6);
    }

    public void setCoinsPlayer6(String coinsPlayer6) {
        this.coinsPlayer6.setText(coinsPlayer6);
    }

    public void setCasinoPool(String casinoPool) {
        this.casinoPool.setText(casinoPool);
    }

    public JLabel getNamePlayer1() {
        return namePlayer1;
    }

    public JLabel getCoinsPlayer1() {
        return coinsPlayer1;
    }

    public JLabel getNamePlayer4() {
        return namePlayer4;
    }

    public JLabel getCoinsPlayer4() {
        return coinsPlayer4;
    }

    public JLabel getNamePlayer2() {
        return namePlayer2;
    }

    public JLabel getCoinsPlayer2() {
        return coinsPlayer2;
    }

    public JLabel getNamePlayer3() {
        return namePlayer3;
    }

    public JLabel getCoinsPlayer3() {
        return coinsPlayer3;
    }

    public JLabel getNamePlayer6() {
        return namePlayer6;
    }

    public JLabel getCoinsPlayer6() {
        return coinsPlayer6;
    }

    public JLabel getNamePlayer5() {
        return namePlayer5;
    }

    public JLabel getCoinsPlayer5() {
        return coinsPlayer5;
    }

    public JLabel getCasinoCard() {
        return casinoCard;
    }

    public JButton getSittingButton1() {
        return sittingButton1;
    }

    public JButton getSittingButton2() {
        return sittingButton2;
    }

    public JButton getSittingButton3() {
        return sittingButton3;
    }

    public JButton getSittingButton4() {
        return sittingButton4;
    }

    public JButton getSittingButton5() {
        return sittingButton5;
    }

    public JButton getSittingButton6() {
        return sittingButton6;
    }

    public JPanel getTablePanel() {
        return tablePanel;
    }

    public JPanel getPlayerPanel1() {
        return playerPanel1;
    }

    public JPanel getPlayerPanel2() {
        return playerPanel2;
    }

    public JPanel getPlayerPanel3() {
        return playerPanel3;
    }

    public JPanel getPlayerPanel4() {
        return playerPanel4;
    }

    public JPanel getPlayerPanel5() {
        return playerPanel5;
    }

    public JPanel getPlayerPanel6() {
        return playerPanel6;
    }

    public JLabel getRolePlayer1() {
        return rolePlayer1;
    }

    public JLabel getRolePlayer2() {
        return rolePlayer2;
    }

    public JLabel getRolePlayer4() {
        return rolePlayer4;
    }

    public JLabel getRolePlayer5() {
        return rolePlayer5;
    }

    public JLabel getRolePlayer6() {
        return rolePlayer6;
    }

    public JPanel getHandPanel1() {
        return handPanel1;
    }

    public JLabel getPlayer1Card1() {
        return player1Card1;
    }

    public JLabel getPlayer1Card2() {
        return player1Card2;
    }

    public JLabel getPlayer1Card3() {
        return player1Card3;
    }

    public JLabel getPlayer1Card4() {
        return player1Card4;
    }

    public JPanel getHandPanel2() {
        return handPanel2;
    }

    public JLabel getPlayer2Card1() {
        return player2Card1;
    }

    public JLabel getPlayer2Card2() {
        return player2Card2;
    }

    public JLabel getPlayer2Card3() {
        return player2Card3;
    }

    public JLabel getPlayer2Card4() {
        return player2Card4;
    }

    public JPanel getHandPanel3() {
        return handPanel3;
    }

    public JLabel getPlayer3Card1() {
        return player3Card1;
    }

    public JLabel getPlayer3Card2() {
        return player3Card2;
    }

    public JLabel getPlayer3Card3() {
        return player3Card3;
    }

    public JLabel getPlayer3Card4() {
        return player3Card4;
    }

    public JPanel getHandPanel4() {
        return handPanel4;
    }

    public JLabel getPlayer4Card1() {
        return player4Card1;
    }

    public JLabel getPlayer4Card2() {
        return player4Card2;
    }

    public JLabel getPlayer4Card4() {
        return player4Card4;
    }

    public JPanel getHandPanel5() {
        return handPanel5;
    }

    public JLabel getPlayer5Card1() {
        return player5Card1;
    }

    public JLabel getPlayer5Card2() {
        return player5Card2;
    }

    public JLabel getPlayer5Card3() {
        return player5Card3;
    }

    public JLabel getPlayer5Card4() {
        return player5Card4;
    }

    public JPanel getHandPanel6() {
        return handPanel6;
    }

    public JLabel getPlayer6Card1() {
        return player6Card1;
    }

    public JLabel getPlayer6Card2() {
        return player6Card2;
    }

    public JLabel getPlayer6Card3() {
        return player6Card3;
    }

    public JLabel getPlayer6Card4() {
        return player6Card4;
    }

    public JPanel getCasinoPlayer() {
        return casinoPlayer;
    }

    public JLabel getRolePlayer3() {
        return rolePlayer3;
    }

    public JLabel getPlayer4Card3() {
        return player4Card3;
    }

    public JLabel getCasinoPool() {
        return casinoPool;
    }

    public void removeAllTable(){

        /// player 1
        playerPanel1.remove(sittingButton1);
        playerPanel1.add(new JButton());
        playerPanel1.invalidate();
        playerPanel1.validate();

        playerPanel1.remove(namePlayer1);
        playerPanel1.add(new JLabel());
        playerPanel1.invalidate();
        playerPanel1.validate();

        playerPanel1.remove(coinsPlayer1);
        playerPanel1.add(new JLabel());
        playerPanel1.invalidate();
        playerPanel1.validate();

        tablePanel.remove(playerPanel1);
        tablePanel.add(new JLabel());
        tablePanel.invalidate();
        tablePanel.validate();

        // player 2
        playerPanel2.remove(sittingButton2);
        playerPanel2.add(new JButton());
        playerPanel2.invalidate();
        playerPanel2.validate();

        playerPanel2.remove(namePlayer2);
        playerPanel2.add(new JLabel());
        playerPanel2.invalidate();
        playerPanel2.validate();

        playerPanel2.remove(coinsPlayer2);
        playerPanel2.add(new JLabel());
        playerPanel2.invalidate();
        playerPanel2.validate();

        tablePanel.remove(playerPanel2);
        tablePanel.add(new JLabel());
        tablePanel.invalidate();
        tablePanel.validate();

        // player 3
        playerPanel3.remove(sittingButton3);
        playerPanel3.add(new JButton());
        playerPanel3.invalidate();
        playerPanel3.validate();

        playerPanel3.remove(namePlayer3);
        playerPanel3.add(new JLabel());
        playerPanel3.invalidate();
        playerPanel3.validate();

        playerPanel3.remove(coinsPlayer3);
        playerPanel3.add(new JLabel());
        playerPanel3.invalidate();
        playerPanel3.validate();

        tablePanel.remove(playerPanel3);
        tablePanel.add(new JLabel());
        tablePanel.invalidate();
        tablePanel.validate();


        // player 4
        playerPanel4.remove(sittingButton4);
        playerPanel4.add(new JButton());
        playerPanel4.invalidate();
        playerPanel4.validate();

        playerPanel4.remove(namePlayer4);
        playerPanel4.add(new JLabel());
        playerPanel4.invalidate();
        playerPanel4.validate();

        playerPanel4.remove(coinsPlayer4);
        playerPanel4.add(new JLabel());
        playerPanel4.invalidate();
        playerPanel4.validate();

        tablePanel.remove(playerPanel4);
        tablePanel.add(new JLabel());
        tablePanel.invalidate();
        tablePanel.validate();


        // player 5
        playerPanel5.remove(sittingButton5);
        playerPanel5.add(new JButton());
        playerPanel5.invalidate();
        playerPanel5.validate();

        playerPanel5.remove(namePlayer5);
        playerPanel5.add(new JLabel());
        playerPanel5.invalidate();
        playerPanel5.validate();

        playerPanel5.remove(coinsPlayer5);
        playerPanel5.add(new JLabel());
        playerPanel5.invalidate();
        playerPanel5.validate();

        tablePanel.remove(playerPanel5);
        tablePanel.add(new JLabel());
        tablePanel.invalidate();
        tablePanel.validate();


        // player 6
        playerPanel6.remove(sittingButton6);
        playerPanel6.add(new JButton());
        playerPanel6.invalidate();
        playerPanel6.validate();

        playerPanel6.remove(namePlayer6);
        playerPanel6.add(new JLabel());
        playerPanel6.invalidate();
        playerPanel6.validate();

        playerPanel6.remove(coinsPlayer6);
        playerPanel6.add(new JLabel());
        playerPanel6.invalidate();
        playerPanel6.validate();

        tablePanel.remove(playerPanel6);
        tablePanel.add(new JLabel());
        tablePanel.invalidate();
        tablePanel.validate();

        // role Player
        tablePanel.remove(rolePlayer1);
        tablePanel.add(new JLabel());
        tablePanel.invalidate();
        tablePanel.validate();

        tablePanel.remove(rolePlayer2);
        tablePanel.add(new JLabel());
        tablePanel.invalidate();
        tablePanel.validate();

        tablePanel.remove(rolePlayer3);
        tablePanel.add(new JLabel());
        tablePanel.invalidate();
        tablePanel.validate();

        tablePanel.remove(rolePlayer4);
        tablePanel.add(new JLabel());
        tablePanel.invalidate();
        tablePanel.validate();

        tablePanel.remove(rolePlayer5);
        tablePanel.add(new JLabel());
        tablePanel.invalidate();
        tablePanel.validate();

        tablePanel.remove(rolePlayer6);
        tablePanel.add(new JLabel());
        tablePanel.invalidate();
        tablePanel.validate();

        // handPlayer 1
        handPanel1.remove(player1Card1);
        handPanel1.add(new JLabel());
        handPanel1.invalidate();
        handPanel1.validate();

        handPanel1.remove(player1Card2);
        handPanel1.add(new JLabel());
        handPanel1.invalidate();
        handPanel1.validate();

        handPanel1.remove(player1Card3);
        handPanel1.add(new JLabel());
        handPanel1.invalidate();
        handPanel1.validate();

        handPanel1.remove(player1Card4);
        handPanel1.add(new JLabel());
        handPanel1.invalidate();
        handPanel1.validate();

        tablePanel.remove(handPanel1);
        tablePanel.add(new JPanel());
        tablePanel.invalidate();
        tablePanel.validate();

        // handPlayer 2
        handPanel2.remove(player2Card1);
        handPanel2.add(new JLabel());
        handPanel2.invalidate();
        handPanel2.validate();

        handPanel2.remove(player2Card2);
        handPanel2.add(new JLabel());
        handPanel2.invalidate();
        handPanel2.validate();

        handPanel2.remove(player2Card3);
        handPanel2.add(new JLabel());
        handPanel2.invalidate();
        handPanel2.validate();

        handPanel2.remove(player2Card4);
        handPanel2.add(new JLabel());
        handPanel2.invalidate();
        handPanel2.validate();

        tablePanel.remove(handPanel2);
        tablePanel.add(new JPanel());
        tablePanel.invalidate();
        tablePanel.validate();

        // handPlayer 3
        handPanel3.remove(player3Card1);
        handPanel3.add(new JLabel());
        handPanel3.invalidate();
        handPanel3.validate();

        handPanel3.remove(player3Card2);
        handPanel3.add(new JLabel());
        handPanel3.invalidate();
        handPanel3.validate();

        handPanel3.remove(player3Card3);
        handPanel3.add(new JLabel());
        handPanel3.invalidate();
        handPanel3.validate();

        handPanel3.remove(player3Card4);
        handPanel2.add(new JLabel());
        handPanel3.invalidate();
        handPanel3.validate();

        tablePanel.remove(handPanel3);
        tablePanel.add(new JPanel());
        tablePanel.invalidate();
        tablePanel.validate();

        // handPlayer 4
        handPanel4.remove(player4Card1);
        handPanel4.add(new JLabel());
        handPanel4.invalidate();
        handPanel4.validate();

        handPanel4.remove(player4Card2);
        handPanel4.add(new JLabel());
        handPanel4.invalidate();
        handPanel4.validate();

        handPanel4.remove(player4Card3);
        handPanel4.add(new JLabel());
        handPanel4.invalidate();
        handPanel4.validate();

        handPanel4.remove(player4Card4);
        handPanel4.add(new JLabel());
        handPanel4.invalidate();
        handPanel4.validate();

        tablePanel.remove(handPanel4);
        tablePanel.add(new JPanel());
        tablePanel.invalidate();
        tablePanel.validate();

        // handPlayer 5
        handPanel5.remove(player5Card1);
        handPanel5.add(new JLabel());
        handPanel5.invalidate();
        handPanel5.validate();

        handPanel5.remove(player5Card2);
        handPanel5.add(new JLabel());
        handPanel5.invalidate();
        handPanel5.validate();

        handPanel5.remove(player5Card3);
        handPanel5.add(new JLabel());
        handPanel5.invalidate();
        handPanel5.validate();

        handPanel5.remove(player5Card4);
        handPanel5.add(new JLabel());
        handPanel5.invalidate();
        handPanel5.validate();

        tablePanel.remove(handPanel5);
        tablePanel.add(new JPanel());
        tablePanel.invalidate();
        tablePanel.validate();

        // handPlayer 6
        handPanel6.remove(player6Card1);
        handPanel6.add(new JLabel());
        handPanel6.invalidate();
        handPanel6.validate();

        handPanel6.remove(player6Card2);
        handPanel6.add(new JLabel());
        handPanel6.invalidate();
        handPanel6.validate();

        handPanel6.remove(player6Card3);
        handPanel6.add(new JLabel());
        handPanel6.invalidate();
        handPanel6.validate();

        handPanel6.remove(player6Card4);
        handPanel6.add(new JLabel());
        handPanel6.invalidate();
        handPanel6.validate();

        tablePanel.remove(handPanel6);
        tablePanel.add(new JPanel());
        tablePanel.invalidate();
        tablePanel.validate();

        // casino Player
        casinoPlayer.remove(casinoCard);
        casinoPlayer.add(new JLabel());
        casinoPlayer.invalidate();
        casinoPlayer.validate();

        casinoPlayer.remove(poolLabel);
        casinoPlayer.add(new JLabel());
        casinoPlayer.invalidate();
        casinoPlayer.validate();

        casinoPlayer.remove(casinoPool);
        casinoPlayer.add(new JLabel());
        casinoPlayer.invalidate();
        casinoPlayer.validate();

        tablePanel.remove(casinoPlayer);
        tablePanel.add(new JPanel());
        tablePanel.invalidate();
        tablePanel.validate();

        //Main table Panel
        tablePanel.remove(badugiLabel);
        tablePanel.add(new JLabel());
        tablePanel.invalidate();
        tablePanel.validate();

        tablePanel.remove(pokerLabel);
        tablePanel.add(new JLabel());
        tablePanel.invalidate();
        tablePanel.validate();
    }

    private void sittingButton6ActionPerformed(ActionEvent e) {
        this.namePlayer6.setText(father.getPlayer().getName());
        this.coinsPlayer6.setText(father.getPlayer().getPrizeTokens());
        this.sittingButton1.setVisible(false);

        this.sittingButton2.setVisible(false);
        this.sittingButton3.setVisible(false);
        this.sittingButton4.setVisible(false);
        this.sittingButton5.setVisible(false);
        this.sittingButton1.setVisible(false);

    }

    private void sittingButton5ActionPerformed(ActionEvent e) {
        this.namePlayer5.setText(father.getPlayer().getName());
        this.coinsPlayer5.setText(father.getPlayer().getPrizeTokens());
        this.sittingButton5.setVisible(false);

        this.sittingButton2.setVisible(false);
        this.sittingButton3.setVisible(false);
        this.sittingButton4.setVisible(false);
        this.sittingButton1.setVisible(false);
        this.sittingButton6.setVisible(false);

    }

    private void sittingButton4ActionPerformed(ActionEvent e) {
        this.namePlayer4.setText(father.getPlayer().getName());
        this.coinsPlayer4.setText(father.getPlayer().getPrizeTokens());
        this.sittingButton4.setVisible(false);

        this.sittingButton2.setVisible(false);
        this.sittingButton3.setVisible(false);
        this.sittingButton1.setVisible(false);
        this.sittingButton5.setVisible(false);
        this.sittingButton6.setVisible(false);

    }

    private void sittingButton3ActionPerformed(ActionEvent e) {
        this.namePlayer3.setText(father.getPlayer().getName());
        this.coinsPlayer3.setText(father.getPlayer().getPrizeTokens());
        this.sittingButton3.setVisible(false);

        this.sittingButton2.setVisible(false);
        this.sittingButton1.setVisible(false);
        this.sittingButton4.setVisible(false);
        this.sittingButton5.setVisible(false);
        this.sittingButton6.setVisible(false);

    }

    private void sittingButton2ActionPerformed(ActionEvent e) {
        this.namePlayer2.setText(father.getPlayer().getName());
        this.coinsPlayer2.setText(father.getPlayer().getPrizeTokens());
        this.sittingButton2.setVisible(false);

        this.sittingButton1.setVisible(false);
        this.sittingButton3.setVisible(false);
        this.sittingButton4.setVisible(false);
        this.sittingButton5.setVisible(false);
        this.sittingButton6.setVisible(false);

    }

    private void sittingButton1ActionPerformed(ActionEvent e) {
        this.namePlayer1.setText(father.getPlayer().getName());
        this.coinsPlayer1.setText(father.getPlayer().getPrizeTokens());
        this.sittingButton1.setVisible(false);

        this.sittingButton2.setVisible(false);
        this.sittingButton3.setVisible(false);
        this.sittingButton4.setVisible(false);
        this.sittingButton5.setVisible(false);
        this.sittingButton6.setVisible(false);


    }

    private void initComponents() {
        // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
        // Generated using JFormDesigner Evaluation license - Pawel Linkshell
        tablePanel = new JPanel();
        playerPanel1 = new JPanel();
        sittingButton1 = new JButton();
        namePlayer1 = new JLabel();
        coinsPlayer1 = new JLabel();
        playerPanel2 = new JPanel();
        namePlayer2 = new JLabel();
        sittingButton2 = new JButton();
        coinsPlayer2 = new JLabel();
        playerPanel3 = new JPanel();
        namePlayer3 = new JLabel();
        sittingButton3 = new JButton();
        coinsPlayer3 = new JLabel();
        playerPanel4 = new JPanel();
        sittingButton4 = new JButton();
        namePlayer4 = new JLabel();
        coinsPlayer4 = new JLabel();
        playerPanel5 = new JPanel();
        namePlayer5 = new JLabel();
        sittingButton5 = new JButton();
        coinsPlayer5 = new JLabel();
        playerPanel6 = new JPanel();
        namePlayer6 = new JLabel();
        sittingButton6 = new JButton();
        coinsPlayer6 = new JLabel();
        rolePlayer1 = new JLabel();
        rolePlayer2 = new JLabel();
        rolePlayer3 = new JLabel();
        rolePlayer4 = new JLabel();
        rolePlayer5 = new JLabel();
        rolePlayer6 = new JLabel();
        handPanel1 = new JPanel();
        player1Card1 = new JLabel();
        player1Card2 = new JLabel();
        player1Card3 = new JLabel();
        player1Card4 = new JLabel();
        handPanel2 = new JPanel();
        player2Card1 = new JLabel();
        player2Card2 = new JLabel();
        player2Card3 = new JLabel();
        player2Card4 = new JLabel();
        handPanel3 = new JPanel();
        player3Card1 = new JLabel();
        player3Card2 = new JLabel();
        player3Card3 = new JLabel();
        player3Card4 = new JLabel();
        handPanel4 = new JPanel();
        player4Card1 = new JLabel();
        player4Card2 = new JLabel();
        player4Card3 = new JLabel();
        player4Card4 = new JLabel();
        handPanel5 = new JPanel();
        player5Card1 = new JLabel();
        player5Card2 = new JLabel();
        player5Card3 = new JLabel();
        player5Card4 = new JLabel();
        handPanel6 = new JPanel();
        player6Card1 = new JLabel();
        player6Card2 = new JLabel();
        player6Card3 = new JLabel();
        player6Card4 = new JLabel();
        casinoPlayer = new JPanel();
        casinoCard = new JLabel();
        poolLabel = new JLabel();
        casinoPool = new JLabel();
        badugiLabel = new JLabel();
        pokerLabel = new JLabel();

        //======== tablePanel ========
        {
            tablePanel.setBackground(new Color(0, 153, 51));

            // JFormDesigner evaluation mark
            tablePanel.setBorder(new javax.swing.border.CompoundBorder(
                new javax.swing.border.TitledBorder(new javax.swing.border.EmptyBorder(0, 0, 0, 0),
                    "JFormDesigner Evaluation", javax.swing.border.TitledBorder.CENTER,
                    javax.swing.border.TitledBorder.BOTTOM, new java.awt.Font("Dialog", java.awt.Font.BOLD, 12),
                    java.awt.Color.red), tablePanel.getBorder())); tablePanel.addPropertyChangeListener(new java.beans.PropertyChangeListener(){public void propertyChange(java.beans.PropertyChangeEvent e){if("border".equals(e.getPropertyName()))throw new RuntimeException();}});

            tablePanel.setLayout(new GridBagLayout());
            ((GridBagLayout)tablePanel.getLayout()).columnWidths = new int[] {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
            ((GridBagLayout)tablePanel.getLayout()).rowHeights = new int[] {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
            ((GridBagLayout)tablePanel.getLayout()).columnWeights = new double[] {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0E-4};
            ((GridBagLayout)tablePanel.getLayout()).rowWeights = new double[] {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0E-4};

            //======== playerPanel1 ========
            {
                playerPanel1.setToolTipText("Player 1");
                playerPanel1.setBackground(new Color(102, 153, 255));
                playerPanel1.setBorder(new BevelBorder(BevelBorder.LOWERED));
                playerPanel1.setLayout(new GridBagLayout());
                ((GridBagLayout)playerPanel1.getLayout()).columnWidths = new int[] {0, 0, 0, 0};
                ((GridBagLayout)playerPanel1.getLayout()).rowHeights = new int[] {0, 0, 0, 0, 0};
                ((GridBagLayout)playerPanel1.getLayout()).columnWeights = new double[] {0.0, 0.0, 0.0, 1.0E-4};
                ((GridBagLayout)playerPanel1.getLayout()).rowWeights = new double[] {0.0, 0.0, 0.0, 0.0, 1.0E-4};

                //---- sittingButton1 ----
                sittingButton1.setText("Zajmij miejsce");
                sittingButton1.setBackground(new Color(51, 51, 51));
                sittingButton1.setForeground(Color.white);
                sittingButton1.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        sittingButton1ActionPerformed(e);
                    }
                });
                playerPanel1.add(sittingButton1, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 5, 5), 0, 0));

                //---- namePlayer1 ----
                namePlayer1.setText("PLAYER 1");
                namePlayer1.setFont(new Font("Calibri", Font.BOLD, 20));
                namePlayer1.setForeground(new Color(51, 51, 51));
                namePlayer1.setHorizontalAlignment(SwingConstants.CENTER);
                playerPanel1.add(namePlayer1, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 5, 5), 0, 0));

                //---- coinsPlayer1 ----
                coinsPlayer1.setText("5000");
                coinsPlayer1.setHorizontalAlignment(SwingConstants.CENTER);
                coinsPlayer1.setFont(new Font("Calibri", Font.BOLD, 24));
                coinsPlayer1.setForeground(new Color(0, 51, 255));
                playerPanel1.add(coinsPlayer1, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 5, 5), 0, 0));
            }
            tablePanel.add(playerPanel1, new GridBagConstraints(0, 13, 1, 1, 0.0, 0.0,
                GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                new Insets(0, 0, 5, 5), 0, 0));

            //======== playerPanel2 ========
            {
                playerPanel2.setBackground(new Color(102, 153, 255));
                playerPanel2.setBorder(new BevelBorder(BevelBorder.LOWERED));
                playerPanel2.setLayout(new BorderLayout());

                //---- namePlayer2 ----
                namePlayer2.setText("PLAYER 2");
                namePlayer2.setFont(new Font("Calibri", Font.BOLD, 20));
                namePlayer2.setForeground(new Color(51, 51, 51));
                namePlayer2.setHorizontalAlignment(SwingConstants.CENTER);
                playerPanel2.add(namePlayer2, BorderLayout.CENTER);

                //---- sittingButton2 ----
                sittingButton2.setText("Zajmij miejsce");
                sittingButton2.setBackground(new Color(51, 51, 51));
                sittingButton2.setForeground(Color.white);
                sittingButton2.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        sittingButton2ActionPerformed(e);
                    }
                });
                playerPanel2.add(sittingButton2, BorderLayout.NORTH);

                //---- coinsPlayer2 ----
                coinsPlayer2.setText("5000");
                coinsPlayer2.setHorizontalAlignment(SwingConstants.CENTER);
                coinsPlayer2.setFont(new Font("Calibri", Font.BOLD, 24));
                coinsPlayer2.setForeground(new Color(0, 51, 255));
                playerPanel2.add(coinsPlayer2, BorderLayout.SOUTH);
            }
            tablePanel.add(playerPanel2, new GridBagConstraints(3, 10, 1, 1, 0.0, 0.0,
                GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                new Insets(0, 0, 5, 5), 0, 0));

            //======== playerPanel3 ========
            {
                playerPanel3.setBackground(new Color(102, 153, 255));
                playerPanel3.setBorder(new BevelBorder(BevelBorder.LOWERED));
                playerPanel3.setLayout(new BorderLayout());

                //---- namePlayer3 ----
                namePlayer3.setText("PLAYER 3");
                namePlayer3.setFont(new Font("Calibri", Font.BOLD, 20));
                namePlayer3.setForeground(new Color(51, 51, 51));
                namePlayer3.setHorizontalAlignment(SwingConstants.CENTER);
                playerPanel3.add(namePlayer3, BorderLayout.CENTER);

                //---- sittingButton3 ----
                sittingButton3.setText("Zajmij miejsce");
                sittingButton3.setBackground(new Color(51, 51, 51));
                sittingButton3.setForeground(Color.white);
                sittingButton3.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        sittingButton3ActionPerformed(e);
                    }
                });
                playerPanel3.add(sittingButton3, BorderLayout.NORTH);

                //---- coinsPlayer3 ----
                coinsPlayer3.setText("5000");
                coinsPlayer3.setHorizontalAlignment(SwingConstants.CENTER);
                coinsPlayer3.setFont(new Font("Calibri", Font.BOLD, 24));
                coinsPlayer3.setForeground(new Color(0, 51, 255));
                playerPanel3.add(coinsPlayer3, BorderLayout.SOUTH);
            }
            tablePanel.add(playerPanel3, new GridBagConstraints(9, 10, 1, 1, 0.0, 0.0,
                GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                new Insets(0, 0, 5, 5), 0, 0));

            //======== playerPanel4 ========
            {
                playerPanel4.setBackground(new Color(102, 153, 255));
                playerPanel4.setBorder(new BevelBorder(BevelBorder.LOWERED));
                playerPanel4.setLayout(new GridBagLayout());
                ((GridBagLayout)playerPanel4.getLayout()).columnWidths = new int[] {0, 0, 0, 0};
                ((GridBagLayout)playerPanel4.getLayout()).rowHeights = new int[] {0, 0, 0, 0, 0, 0, 0};
                ((GridBagLayout)playerPanel4.getLayout()).columnWeights = new double[] {0.0, 0.0, 0.0, 1.0E-4};
                ((GridBagLayout)playerPanel4.getLayout()).rowWeights = new double[] {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0E-4};

                //---- sittingButton4 ----
                sittingButton4.setText("Zajmij miejsce");
                sittingButton4.setBackground(new Color(51, 51, 51));
                sittingButton4.setForeground(Color.white);
                sittingButton4.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        sittingButton4ActionPerformed(e);
                    }
                });
                playerPanel4.add(sittingButton4, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 5, 5), 0, 0));

                //---- namePlayer4 ----
                namePlayer4.setText("PLAYER 4");
                namePlayer4.setFont(new Font("Calibri", Font.BOLD, 20));
                namePlayer4.setForeground(new Color(51, 51, 51));
                namePlayer4.setHorizontalAlignment(SwingConstants.CENTER);
                playerPanel4.add(namePlayer4, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 5, 5), 0, 0));

                //---- coinsPlayer4 ----
                coinsPlayer4.setText("5000");
                coinsPlayer4.setHorizontalAlignment(SwingConstants.CENTER);
                coinsPlayer4.setFont(new Font("Calibri", Font.BOLD, 24));
                coinsPlayer4.setForeground(new Color(0, 51, 255));
                playerPanel4.add(coinsPlayer4, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 5, 5), 0, 0));
            }
            tablePanel.add(playerPanel4, new GridBagConstraints(12, 13, 1, 1, 0.0, 0.0,
                GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                new Insets(0, 0, 5, 5), 0, 0));

            //======== playerPanel5 ========
            {
                playerPanel5.setBackground(new Color(102, 153, 255));
                playerPanel5.setBorder(new BevelBorder(BevelBorder.LOWERED));
                playerPanel5.setLayout(new BorderLayout());

                //---- namePlayer5 ----
                namePlayer5.setText("PLAYER 5");
                namePlayer5.setFont(new Font("Calibri", Font.BOLD, 20));
                namePlayer5.setForeground(new Color(51, 51, 51));
                namePlayer5.setHorizontalAlignment(SwingConstants.CENTER);
                playerPanel5.add(namePlayer5, BorderLayout.CENTER);

                //---- sittingButton5 ----
                sittingButton5.setText("Zajmij miejsce");
                sittingButton5.setBackground(new Color(51, 51, 51));
                sittingButton5.setForeground(Color.white);
                sittingButton5.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        sittingButton5ActionPerformed(e);
                    }
                });
                playerPanel5.add(sittingButton5, BorderLayout.NORTH);

                //---- coinsPlayer5 ----
                coinsPlayer5.setText("5000");
                coinsPlayer5.setHorizontalAlignment(SwingConstants.CENTER);
                coinsPlayer5.setFont(new Font("Calibri", Font.BOLD, 24));
                coinsPlayer5.setForeground(new Color(0, 51, 255));
                playerPanel5.add(coinsPlayer5, BorderLayout.SOUTH);
            }
            tablePanel.add(playerPanel5, new GridBagConstraints(9, 16, 1, 1, 0.0, 0.0,
                GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                new Insets(0, 0, 5, 5), 0, 0));

            //======== playerPanel6 ========
            {
                playerPanel6.setBackground(new Color(102, 153, 255));
                playerPanel6.setBorder(new BevelBorder(BevelBorder.LOWERED));
                playerPanel6.setLayout(new BorderLayout());

                //---- namePlayer6 ----
                namePlayer6.setText("PLAYER 6");
                namePlayer6.setFont(new Font("Calibri", Font.BOLD, 20));
                namePlayer6.setForeground(new Color(51, 51, 51));
                namePlayer6.setHorizontalAlignment(SwingConstants.CENTER);
                playerPanel6.add(namePlayer6, BorderLayout.CENTER);

                //---- sittingButton6 ----
                sittingButton6.setText("Zajmij miejsce");
                sittingButton6.setBackground(new Color(51, 51, 51));
                sittingButton6.setForeground(Color.white);
                sittingButton6.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        sittingButton6ActionPerformed(e);
                    }
                });
                playerPanel6.add(sittingButton6, BorderLayout.NORTH);

                //---- coinsPlayer6 ----
                coinsPlayer6.setText("5000");
                coinsPlayer6.setHorizontalAlignment(SwingConstants.CENTER);
                coinsPlayer6.setFont(new Font("Calibri", Font.BOLD, 24));
                coinsPlayer6.setForeground(new Color(0, 51, 255));
                playerPanel6.add(coinsPlayer6, BorderLayout.SOUTH);
            }
            tablePanel.add(playerPanel6, new GridBagConstraints(3, 16, 1, 1, 0.0, 0.0,
                GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                new Insets(0, 0, 5, 5), 0, 0));

            //---- rolePlayer1 ----
            rolePlayer1.setIcon(new ImageIcon("C:\\Users\\Pawel\\IdeaProjects\\badugiproject\\src\\pl\\PawelAndAlicja\\badugiproject\\main\\Gui\\images\\dealerButton.png"));
            rolePlayer1.setHorizontalAlignment(SwingConstants.CENTER);
            tablePanel.add(rolePlayer1, new GridBagConstraints(2, 13, 1, 1, 0.0, 0.0,
                GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                new Insets(0, 0, 5, 5), 0, 0));

            //---- rolePlayer2 ----
            rolePlayer2.setIcon(new ImageIcon("C:\\Users\\Pawel\\IdeaProjects\\badugiproject\\src\\pl\\PawelAndAlicja\\badugiproject\\main\\Gui\\images\\smallBlind.png"));
            rolePlayer2.setHorizontalAlignment(SwingConstants.CENTER);
            tablePanel.add(rolePlayer2, new GridBagConstraints(3, 12, 1, 1, 0.0, 0.0,
                GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                new Insets(0, 0, 5, 5), 0, 0));

            //---- rolePlayer3 ----
            rolePlayer3.setIcon(new ImageIcon("C:\\Users\\Pawel\\IdeaProjects\\badugiproject\\src\\pl\\PawelAndAlicja\\badugiproject\\main\\Gui\\images\\bigBlind.png"));
            rolePlayer3.setHorizontalAlignment(SwingConstants.CENTER);
            tablePanel.add(rolePlayer3, new GridBagConstraints(9, 12, 1, 1, 0.0, 0.0,
                GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                new Insets(0, 0, 5, 5), 0, 0));

            //---- rolePlayer4 ----
            rolePlayer4.setIcon(null);
            rolePlayer4.setHorizontalAlignment(SwingConstants.CENTER);
            tablePanel.add(rolePlayer4, new GridBagConstraints(10, 13, 1, 1, 0.0, 0.0,
                GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                new Insets(0, 0, 5, 5), 0, 0));

            //---- rolePlayer5 ----
            rolePlayer5.setHorizontalAlignment(SwingConstants.CENTER);
            tablePanel.add(rolePlayer5, new GridBagConstraints(9, 14, 1, 1, 0.0, 0.0,
                GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                new Insets(0, 0, 5, 5), 0, 0));

            //---- rolePlayer6 ----
            rolePlayer6.setHorizontalAlignment(SwingConstants.CENTER);
            tablePanel.add(rolePlayer6, new GridBagConstraints(3, 14, 1, 1, 0.0, 0.0,
                GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                new Insets(0, 0, 5, 5), 0, 0));

            //======== handPanel1 ========
            {
                handPanel1.setBackground(new Color(0, 153, 51));
                handPanel1.setLayout(new GridBagLayout());
                ((GridBagLayout)handPanel1.getLayout()).columnWidths = new int[] {0, 0, 0};
                ((GridBagLayout)handPanel1.getLayout()).rowHeights = new int[] {0, 0, 0, 0, 0};
                ((GridBagLayout)handPanel1.getLayout()).columnWeights = new double[] {0.0, 0.0, 1.0E-4};
                ((GridBagLayout)handPanel1.getLayout()).rowWeights = new double[] {0.0, 0.0, 0.0, 0.0, 1.0E-4};

                //---- player1Card1 ----
                player1Card1.setIcon(new ImageIcon("C:\\Users\\Pawel\\IdeaProjects\\badugiproject\\src\\pl\\PawelAndAlicja\\badugiproject\\main\\Gui\\images\\classic-cards\\blueVerticalHalfDown.png"));
                player1Card1.setHorizontalAlignment(SwingConstants.CENTER);
                handPanel1.add(player1Card1, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 5, 5), 0, 0));

                //---- player1Card2 ----
                player1Card2.setIcon(new ImageIcon("C:\\Users\\Pawel\\IdeaProjects\\badugiproject\\src\\pl\\PawelAndAlicja\\badugiproject\\main\\Gui\\images\\classic-cards\\blueVerticalHalfDown.png"));
                player1Card2.setHorizontalAlignment(SwingConstants.CENTER);
                handPanel1.add(player1Card2, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 5, 5), 0, 0));

                //---- player1Card3 ----
                player1Card3.setIcon(new ImageIcon("C:\\Users\\Pawel\\IdeaProjects\\badugiproject\\src\\pl\\PawelAndAlicja\\badugiproject\\main\\Gui\\images\\classic-cards\\blueVerticalHalfDown.png"));
                player1Card3.setHorizontalAlignment(SwingConstants.CENTER);
                handPanel1.add(player1Card3, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 5, 5), 0, 0));

                //---- player1Card4 ----
                player1Card4.setIcon(new ImageIcon("C:\\Users\\Pawel\\IdeaProjects\\badugiproject\\src\\pl\\PawelAndAlicja\\badugiproject\\main\\Gui\\images\\classic-cards\\blueVerticalHalfDown.png"));
                player1Card4.setHorizontalAlignment(SwingConstants.CENTER);
                handPanel1.add(player1Card4, new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 0, 5), 0, 0));
            }
            tablePanel.add(handPanel1, new GridBagConstraints(1, 13, 1, 1, 0.0, 0.0,
                GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                new Insets(0, 0, 5, 5), 0, 0));

            //======== handPanel2 ========
            {
                handPanel2.setBackground(new Color(0, 153, 51));
                handPanel2.setLayout(new GridBagLayout());
                ((GridBagLayout)handPanel2.getLayout()).columnWidths = new int[] {0, 0, 0, 0, 0};
                ((GridBagLayout)handPanel2.getLayout()).rowHeights = new int[] {0, 0, 0, 0, 0};
                ((GridBagLayout)handPanel2.getLayout()).columnWeights = new double[] {0.0, 0.0, 0.0, 0.0, 1.0E-4};
                ((GridBagLayout)handPanel2.getLayout()).rowWeights = new double[] {0.0, 0.0, 0.0, 0.0, 1.0E-4};

                //---- player2Card1 ----
                player2Card1.setIcon(new ImageIcon("C:\\Users\\Pawel\\IdeaProjects\\badugiproject\\src\\pl\\PawelAndAlicja\\badugiproject\\main\\Gui\\images\\classic-cards\\blueHalfDown.png"));
                player2Card1.setHorizontalAlignment(SwingConstants.CENTER);
                handPanel2.add(player2Card1, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 5, 5), 0, 0));

                //---- player2Card2 ----
                player2Card2.setIcon(new ImageIcon("C:\\Users\\Pawel\\IdeaProjects\\badugiproject\\src\\pl\\PawelAndAlicja\\badugiproject\\main\\Gui\\images\\classic-cards\\blueHalfDown.png"));
                player2Card2.setHorizontalAlignment(SwingConstants.CENTER);
                handPanel2.add(player2Card2, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 5, 5), 0, 0));

                //---- player2Card3 ----
                player2Card3.setIcon(new ImageIcon("C:\\Users\\Pawel\\IdeaProjects\\badugiproject\\src\\pl\\PawelAndAlicja\\badugiproject\\main\\Gui\\images\\classic-cards\\blueHalfDown.png"));
                player2Card3.setHorizontalAlignment(SwingConstants.CENTER);
                handPanel2.add(player2Card3, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 5, 5), 0, 0));

                //---- player2Card4 ----
                player2Card4.setIcon(new ImageIcon("C:\\Users\\Pawel\\IdeaProjects\\badugiproject\\src\\pl\\PawelAndAlicja\\badugiproject\\main\\Gui\\images\\classic-cards\\blueHalfDown.png"));
                player2Card4.setHorizontalAlignment(SwingConstants.CENTER);
                handPanel2.add(player2Card4, new GridBagConstraints(3, 0, 1, 1, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 5, 0), 0, 0));
            }
            tablePanel.add(handPanel2, new GridBagConstraints(3, 11, 1, 1, 0.0, 0.0,
                GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                new Insets(0, 0, 5, 5), 0, 0));

            //======== handPanel3 ========
            {
                handPanel3.setBackground(new Color(0, 153, 51));
                handPanel3.setLayout(new GridBagLayout());
                ((GridBagLayout)handPanel3.getLayout()).columnWidths = new int[] {0, 0, 0, 0, 0};
                ((GridBagLayout)handPanel3.getLayout()).rowHeights = new int[] {0, 0, 0, 0, 0};
                ((GridBagLayout)handPanel3.getLayout()).columnWeights = new double[] {0.0, 0.0, 0.0, 0.0, 1.0E-4};
                ((GridBagLayout)handPanel3.getLayout()).rowWeights = new double[] {0.0, 0.0, 0.0, 0.0, 1.0E-4};

                //---- player3Card1 ----
                player3Card1.setIcon(new ImageIcon("C:\\Users\\Pawel\\IdeaProjects\\badugiproject\\src\\pl\\PawelAndAlicja\\badugiproject\\main\\Gui\\images\\classic-cards\\blueHalfDown.png"));
                player3Card1.setHorizontalAlignment(SwingConstants.CENTER);
                handPanel3.add(player3Card1, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 5, 5), 0, 0));

                //---- player3Card2 ----
                player3Card2.setIcon(new ImageIcon("C:\\Users\\Pawel\\IdeaProjects\\badugiproject\\src\\pl\\PawelAndAlicja\\badugiproject\\main\\Gui\\images\\classic-cards\\blueHalfDown.png"));
                player3Card2.setHorizontalAlignment(SwingConstants.CENTER);
                handPanel3.add(player3Card2, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 5, 5), 0, 0));

                //---- player3Card3 ----
                player3Card3.setIcon(new ImageIcon("C:\\Users\\Pawel\\IdeaProjects\\badugiproject\\src\\pl\\PawelAndAlicja\\badugiproject\\main\\Gui\\images\\classic-cards\\blueHalfDown.png"));
                player3Card3.setHorizontalAlignment(SwingConstants.CENTER);
                handPanel3.add(player3Card3, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 5, 5), 0, 0));

                //---- player3Card4 ----
                player3Card4.setIcon(new ImageIcon("C:\\Users\\Pawel\\IdeaProjects\\badugiproject\\src\\pl\\PawelAndAlicja\\badugiproject\\main\\Gui\\images\\classic-cards\\blueHalfDown.png"));
                player3Card4.setHorizontalAlignment(SwingConstants.CENTER);
                handPanel3.add(player3Card4, new GridBagConstraints(3, 0, 1, 1, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 5, 0), 0, 0));
            }
            tablePanel.add(handPanel3, new GridBagConstraints(9, 11, 1, 1, 0.0, 0.0,
                GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                new Insets(0, 0, 5, 5), 0, 0));

            //======== handPanel4 ========
            {
                handPanel4.setBackground(new Color(0, 153, 51));
                handPanel4.setLayout(new GridBagLayout());
                ((GridBagLayout)handPanel4.getLayout()).columnWidths = new int[] {0, 0, 0};
                ((GridBagLayout)handPanel4.getLayout()).rowHeights = new int[] {0, 0, 0, 0, 0};
                ((GridBagLayout)handPanel4.getLayout()).columnWeights = new double[] {0.0, 0.0, 1.0E-4};
                ((GridBagLayout)handPanel4.getLayout()).rowWeights = new double[] {0.0, 0.0, 0.0, 0.0, 1.0E-4};

                //---- player4Card1 ----
                player4Card1.setIcon(new ImageIcon("C:\\Users\\Pawel\\IdeaProjects\\badugiproject\\src\\pl\\PawelAndAlicja\\badugiproject\\main\\Gui\\images\\classic-cards\\blueVerticalHalfUp.png"));
                player4Card1.setHorizontalAlignment(SwingConstants.CENTER);
                handPanel4.add(player4Card1, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 5, 0), 0, 0));

                //---- player4Card2 ----
                player4Card2.setIcon(new ImageIcon("C:\\Users\\Pawel\\IdeaProjects\\badugiproject\\src\\pl\\PawelAndAlicja\\badugiproject\\main\\Gui\\images\\classic-cards\\blueVerticalHalfUp.png"));
                player4Card2.setHorizontalAlignment(SwingConstants.CENTER);
                handPanel4.add(player4Card2, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 5, 0), 0, 0));

                //---- player4Card3 ----
                player4Card3.setIcon(new ImageIcon("C:\\Users\\Pawel\\IdeaProjects\\badugiproject\\src\\pl\\PawelAndAlicja\\badugiproject\\main\\Gui\\images\\classic-cards\\blueVerticalHalfUp.png"));
                player4Card3.setHorizontalAlignment(SwingConstants.CENTER);
                handPanel4.add(player4Card3, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 5, 0), 0, 0));

                //---- player4Card4 ----
                player4Card4.setIcon(new ImageIcon("C:\\Users\\Pawel\\IdeaProjects\\badugiproject\\src\\pl\\PawelAndAlicja\\badugiproject\\main\\Gui\\images\\classic-cards\\blueVerticalHalfUp.png"));
                player4Card4.setHorizontalAlignment(SwingConstants.CENTER);
                handPanel4.add(player4Card4, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 0, 0), 0, 0));
            }
            tablePanel.add(handPanel4, new GridBagConstraints(11, 13, 1, 1, 0.0, 0.0,
                GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                new Insets(0, 0, 5, 5), 0, 0));

            //======== handPanel5 ========
            {
                handPanel5.setBackground(new Color(0, 153, 51));
                handPanel5.setLayout(new GridBagLayout());
                ((GridBagLayout)handPanel5.getLayout()).columnWidths = new int[] {0, 0, 0, 0, 0};
                ((GridBagLayout)handPanel5.getLayout()).rowHeights = new int[] {0, 0, 0, 0, 0};
                ((GridBagLayout)handPanel5.getLayout()).columnWeights = new double[] {0.0, 0.0, 0.0, 0.0, 1.0E-4};
                ((GridBagLayout)handPanel5.getLayout()).rowWeights = new double[] {0.0, 0.0, 0.0, 0.0, 1.0E-4};

                //---- player5Card1 ----
                player5Card1.setIcon(new ImageIcon("C:\\Users\\Pawel\\IdeaProjects\\badugiproject\\src\\pl\\PawelAndAlicja\\badugiproject\\main\\Gui\\images\\classic-cards\\blueUpHalf.png"));
                player5Card1.setHorizontalAlignment(SwingConstants.CENTER);
                handPanel5.add(player5Card1, new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 0, 5), 0, 0));

                //---- player5Card2 ----
                player5Card2.setIcon(new ImageIcon("C:\\Users\\Pawel\\IdeaProjects\\badugiproject\\src\\pl\\PawelAndAlicja\\badugiproject\\main\\Gui\\images\\classic-cards\\blueUpHalf.png"));
                player5Card2.setHorizontalAlignment(SwingConstants.CENTER);
                handPanel5.add(player5Card2, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 0, 5), 0, 0));

                //---- player5Card3 ----
                player5Card3.setIcon(new ImageIcon("C:\\Users\\Pawel\\IdeaProjects\\badugiproject\\src\\pl\\PawelAndAlicja\\badugiproject\\main\\Gui\\images\\classic-cards\\blueUpHalf.png"));
                player5Card3.setHorizontalAlignment(SwingConstants.CENTER);
                handPanel5.add(player5Card3, new GridBagConstraints(2, 3, 1, 1, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 0, 5), 0, 0));

                //---- player5Card4 ----
                player5Card4.setIcon(new ImageIcon("C:\\Users\\Pawel\\IdeaProjects\\badugiproject\\src\\pl\\PawelAndAlicja\\badugiproject\\main\\Gui\\images\\classic-cards\\blueUpHalf.png"));
                player5Card4.setHorizontalAlignment(SwingConstants.CENTER);
                handPanel5.add(player5Card4, new GridBagConstraints(3, 3, 1, 1, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 0, 0), 0, 0));
            }
            tablePanel.add(handPanel5, new GridBagConstraints(9, 15, 1, 1, 0.0, 0.0,
                GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                new Insets(0, 0, 5, 5), 0, 0));

            //======== handPanel6 ========
            {
                handPanel6.setBackground(new Color(0, 153, 51));
                handPanel6.setLayout(new GridBagLayout());
                ((GridBagLayout)handPanel6.getLayout()).columnWidths = new int[] {0, 0, 0, 0, 0};
                ((GridBagLayout)handPanel6.getLayout()).rowHeights = new int[] {0, 0, 0, 0, 0};
                ((GridBagLayout)handPanel6.getLayout()).columnWeights = new double[] {0.0, 0.0, 0.0, 0.0, 1.0E-4};
                ((GridBagLayout)handPanel6.getLayout()).rowWeights = new double[] {0.0, 0.0, 0.0, 0.0, 1.0E-4};

                //---- player6Card1 ----
                player6Card1.setIcon(new ImageIcon("C:\\Users\\Pawel\\IdeaProjects\\badugiproject\\src\\pl\\PawelAndAlicja\\badugiproject\\main\\Gui\\images\\classic-cards\\blueUpHalf.png"));
                player6Card1.setHorizontalAlignment(SwingConstants.CENTER);
                handPanel6.add(player6Card1, new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 0, 5), 0, 0));

                //---- player6Card2 ----
                player6Card2.setIcon(new ImageIcon("C:\\Users\\Pawel\\IdeaProjects\\badugiproject\\src\\pl\\PawelAndAlicja\\badugiproject\\main\\Gui\\images\\classic-cards\\blueUpHalf.png"));
                player6Card2.setHorizontalAlignment(SwingConstants.CENTER);
                handPanel6.add(player6Card2, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 0, 5), 0, 0));

                //---- player6Card3 ----
                player6Card3.setIcon(new ImageIcon("C:\\Users\\Pawel\\IdeaProjects\\badugiproject\\src\\pl\\PawelAndAlicja\\badugiproject\\main\\Gui\\images\\classic-cards\\blueUpHalf.png"));
                player6Card3.setHorizontalAlignment(SwingConstants.CENTER);
                handPanel6.add(player6Card3, new GridBagConstraints(2, 3, 1, 1, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 0, 5), 0, 0));

                //---- player6Card4 ----
                player6Card4.setIcon(new ImageIcon("C:\\Users\\Pawel\\IdeaProjects\\badugiproject\\src\\pl\\PawelAndAlicja\\badugiproject\\main\\Gui\\images\\classic-cards\\blueUpHalf.png"));
                player6Card4.setHorizontalAlignment(SwingConstants.CENTER);
                handPanel6.add(player6Card4, new GridBagConstraints(3, 3, 1, 1, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 0, 0), 0, 0));
            }
            tablePanel.add(handPanel6, new GridBagConstraints(3, 15, 1, 1, 0.0, 0.0,
                GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                new Insets(0, 0, 5, 5), 0, 0));

            //======== casinoPlayer ========
            {
                casinoPlayer.setBackground(new Color(0, 153, 51));
                casinoPlayer.setLayout(new GridBagLayout());
                ((GridBagLayout)casinoPlayer.getLayout()).columnWidths = new int[] {0, 0, 0, 0};
                ((GridBagLayout)casinoPlayer.getLayout()).rowHeights = new int[] {0, 0, 0, 0, 0};
                ((GridBagLayout)casinoPlayer.getLayout()).columnWeights = new double[] {0.0, 0.0, 0.0, 1.0E-4};
                ((GridBagLayout)casinoPlayer.getLayout()).rowWeights = new double[] {0.0, 0.0, 0.0, 0.0, 1.0E-4};

                //---- casinoCard ----
                casinoCard.setIcon(new ImageIcon("C:\\Users\\Pawel\\IdeaProjects\\badugiproject\\src\\pl\\PawelAndAlicja\\badugiproject\\main\\Gui\\images\\classic-cards\\blue.png"));
                casinoCard.setHorizontalAlignment(SwingConstants.CENTER);
                casinoPlayer.add(casinoCard, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 5, 5), 0, 0));

                //---- poolLabel ----
                poolLabel.setText("Pula: ");
                poolLabel.setHorizontalAlignment(SwingConstants.CENTER);
                poolLabel.setFont(new Font("Calibri", Font.BOLD, 18));
                casinoPlayer.add(poolLabel, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 5, 5), 0, 0));

                //---- casinoPool ----
                casinoPool.setText("5000");
                casinoPool.setHorizontalAlignment(SwingConstants.CENTER);
                casinoPool.setFont(casinoPool.getFont().deriveFont(casinoPool.getFont().getStyle() | Font.BOLD, casinoPool.getFont().getSize() + 14f));
                casinoPlayer.add(casinoPool, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0,
                    GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                    new Insets(0, 0, 0, 5), 0, 0));
            }
            tablePanel.add(casinoPlayer, new GridBagConstraints(6, 13, 1, 1, 0.0, 0.0,
                GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                new Insets(0, 0, 5, 5), 0, 0));

            //---- badugiLabel ----
            badugiLabel.setText("BADUGI");
            badugiLabel.setHorizontalAlignment(SwingConstants.CENTER);
            badugiLabel.setFont(new Font("Castellar", badugiLabel.getFont().getStyle() | Font.BOLD, badugiLabel.getFont().getSize() + 16));
            tablePanel.add(badugiLabel, new GridBagConstraints(3, 13, 1, 1, 0.0, 0.0,
                GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                new Insets(0, 0, 5, 5), 0, 0));

            //---- pokerLabel ----
            pokerLabel.setText("POKER");
            pokerLabel.setFont(new Font("Castellar", pokerLabel.getFont().getStyle() | Font.BOLD, pokerLabel.getFont().getSize() + 16));
            pokerLabel.setHorizontalAlignment(SwingConstants.CENTER);
            tablePanel.add(pokerLabel, new GridBagConstraints(9, 13, 1, 1, 0.0, 0.0,
                GridBagConstraints.CENTER, GridBagConstraints.BOTH,
                new Insets(0, 0, 5, 5), 0, 0));
        }
        // JFormDesigner - End of component initialization  //GEN-END:initComponents
    }

    // JFormDesigner - Variables declaration - DO NOT MODIFY  //GEN-BEGIN:variables
    // Generated using JFormDesigner Evaluation license - Pawel Linkshell
    private JPanel tablePanel;
    private JPanel playerPanel1;
    private JButton sittingButton1;
    private JLabel namePlayer1;
    private JLabel coinsPlayer1;
    private JPanel playerPanel2;
    private JLabel namePlayer2;
    private JButton sittingButton2;
    private JLabel coinsPlayer2;
    private JPanel playerPanel3;
    private JLabel namePlayer3;
    private JButton sittingButton3;
    private JLabel coinsPlayer3;
    private JPanel playerPanel4;
    private JButton sittingButton4;
    private JLabel namePlayer4;
    private JLabel coinsPlayer4;
    private JPanel playerPanel5;
    private JLabel namePlayer5;
    private JButton sittingButton5;
    private JLabel coinsPlayer5;
    private JPanel playerPanel6;
    private JLabel namePlayer6;
    private JButton sittingButton6;
    private JLabel coinsPlayer6;
    private JLabel rolePlayer1;
    private JLabel rolePlayer2;
    private JLabel rolePlayer3;
    private JLabel rolePlayer4;
    private JLabel rolePlayer5;
    private JLabel rolePlayer6;
    private JPanel handPanel1;
    private JLabel player1Card1;
    private JLabel player1Card2;
    private JLabel player1Card3;
    private JLabel player1Card4;
    private JPanel handPanel2;
    private JLabel player2Card1;
    private JLabel player2Card2;
    private JLabel player2Card3;
    private JLabel player2Card4;
    private JPanel handPanel3;
    private JLabel player3Card1;
    private JLabel player3Card2;
    private JLabel player3Card3;
    private JLabel player3Card4;
    private JPanel handPanel4;
    private JLabel player4Card1;
    private JLabel player4Card2;
    private JLabel player4Card3;
    private JLabel player4Card4;
    private JPanel handPanel5;
    private JLabel player5Card1;
    private JLabel player5Card2;
    private JLabel player5Card3;
    private JLabel player5Card4;
    private JPanel handPanel6;
    private JLabel player6Card1;
    private JLabel player6Card2;
    private JLabel player6Card3;
    private JLabel player6Card4;
    private JPanel casinoPlayer;
    private JLabel casinoCard;
    private JLabel poolLabel;
    private JLabel casinoPool;
    private JLabel badugiLabel;
    private JLabel pokerLabel;
    // JFormDesigner - End of variables declaration  //GEN-END:variables

    private ClientGUI father;
}
